<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%

    for (int i = 0; i < 10; i++) {

    }
%>
<c:forEach begin="1" end="5" step="1" var="i">
    ${pageScope.i} <br>
</c:forEach>
i==${pageScope.i}


<%--<c:forEach begin="1" end="5" step="1" var="ii">--%>
<%--&lt;%&ndash;    ${pageContext.ii}&ndash;%&gt;--%>
<%--    ${pageScope.ii}--%>
<%--</c:forEach>--%>
<%--i==${pageScope.ii}<br>--%>

</body>
</html>
